#include <event2/event.h>
#include <stdio.h>

int main()
{
   char str[30] = "2030300 This is test";
   char *ptr;
   long ret;

//    ret = strtol(str, &ptr, 10);
   ret = evutil_strtoll(str, &ptr, 10);
   printf("数字（无符号长整数）是 %ld\n", ret);
   printf("字符串部分是 |%s| \r\n", ptr);

   return(0);
}
